﻿using SXFramWork.Core;
using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
using System.Text;

namespace SXFramWork.Core
{
    /// <summary>
    /// 代码生成配置
    /// </summary>
    public class CodeGenerateOption
    {
        public String Author { get; set; }
        /// <summary>
        /// 数据库连接字符串
        /// </summary>
        public string ConnectionString { get; set; }
        /// <summary>
        /// 数据库类型 
        /// </summary>
        public DatabaseType dbType = DatabaseType.SqlServer;
        /// <summary>
        /// 生成时间
        /// </summary>
        public string GeneratorTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        /// <summary>
        /// 实体输出路径
        /// </summary>
        public string OutputPath_Model { get; set; }
        /// <summary>
        /// 仓储接口输出路径
        /// </summary>
        public string OutputPath_IRepository { get; set; }
        /// <summary>
        /// 仓储输出路径
        /// </summary>
        public string OutputPath_Repository { get; set; }
        /// <summary>
        /// 服务接口输出路径
        /// </summary>
        public string OutputPath_IService { get; set; }
        /// <summary>
        /// 服务输出路径
        /// </summary>
        public string OutputPath_Service { get; set; }
        /// <summary>
        /// 实体命名空间
        /// </summary>
        public string ModelsNamespace { get; set; }
        /// <summary>
        /// 仓储接口命名空间
        /// </summary>
        public string IRepositoryNamespace { get; set; }
        /// <summary>
        /// 仓储命名空间
        /// </summary>
        public string RepositoryNamespace { get; set; }
        /// <summary>
        /// 服务接口命名空间
        /// </summary>
        public string IServicesNamespace { get; set; }
        /// <summary>
        /// 服务命名空间
        /// </summary>
        public string ServicesNamespace { get; set; }
    }
}
